import time
from selenium import webdriver
from selenium.webdriver.common.by import By

#创建浏览器实例
driver =webdriver.Chrome()
#打开网址
driver.get("https://www.baidu.com")

#找到输入框，输入Python
driver.find_element(By.CLASS_NAME,'').send_keys('python')
#找到搜索框位置，点击搜索
driver.find_element(By.CLASS_NAME,'').click()

time.sleep(4)
driver.close()
